/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class TestDemo {
    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        int c = 3;
        int max2 = 0;
        int max3 = 0;
        max2 = Max2(a,b);
        max3 = Max3(Max2(a,b),c);
        System.out.println(max3);
    }

    public static int Max2(int a,int b ){
        return a>b?a:b;
    }

    public static int Max3(int a,int b){
        return a>b?a:b;
    }
}
